#include "component_script.hpp"
#include "node.hpp"
#include "lua.hpp"
using namespace std;

ComponentScript::ComponentScript()
    : _lvm( luaL_newstate() )
{
    luaL_openlibs( _lvm );
    //lua_register( _lvm, "log", ScriptLog );
    //lua_register( _lvm, "setPosition", SetPosition );
}

void ComponentScript::setPosition( lua_State* lvm )
{

}

void ComponentScript::doString( std::string const& str )
{
    luaL_dostring( _lvm, str.c_str() );
}